﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Common;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
	public class TranslateConsultarNegocioExecutadoToParameter : BaseTranslator<BusinessEntity.Parameter.ConsultarNegocioExecutado, DataContract.Request.ConsultarNegocioExecutadoRequest,
																	List<BusinessEntity.Parameter.ConsultarNegocioExecutado>, List<DataContract.Request.ConsultarNegocioExecutadoRequest>>{
		public override Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.ConsultarNegocioExecutado Translate(Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request.ConsultarNegocioExecutadoRequest from)
		{
			if(from == null){
				return null;
			}
			
			BusinessEntity.Parameter.ConsultarNegocioExecutado to = new Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.ConsultarNegocioExecutado();
			
			to.DataOrdem = from.DataOrdem;
			to.NumeroOrdem = from.NumeroOrdem;
			to.NumeroOrdemSubSequencia = from.NumeroOrdemSubSequencia;
			
			return to;
		}
	}
}
